package com.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.db.EntityMapping;
import com.entity.Article;


public class ArticleMapping implements EntityMapping {

	public Object mapping(ResultSet rs) {
		Article article = null;
		try {
			article=new Article(
					rs.getInt("article_id"),
					rs.getInt("user_id"),
					rs.getString("article_name"),
					rs.getString("article_content")
					);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return article;
	}

}

